package com.lwc.backendsinglestructure.common.utils;

import java.util.UUID;

/**
 * 链路Id生成工具
 */
public class TraceIdUtil {

    private TraceIdUtil() {
        throw new UnsupportedOperationException("Utility class");
    }

    /**
     * 获取traceId
     * @return
     */
    public static String getTraceId() {
        return UUID.randomUUID().toString().replace("-", "").toUpperCase();
    }


}
